<?php

$aReeks = array(23,245,1,2,46,6,66,9999,55,348,56,6);

$max = 0;

for( $x=0; $x <count($aReeks) ; $x++) {	
	if ($aReeks[$x] > $max) {
		$max = $aReeks[$x];
		echo $max;
		echo "<br>";
	}
}
echo $max;

?>